package com.google.code.jbauble.test.controller;

import java.util.Map;

import org.apache.commons.fileupload.FileItem;

import com.google.code.jbauble.mvc.Controller;
import com.google.code.jbauble.mvc.Result;

public class UploadController extends Controller {
	public Result index() {
		return render();
	}
	
	public Result upload(FileItem[] fis) {
		Map map = getModel();
		map.put("fileName", fis[0].getName());
		return render(map);
	}
}
